/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package model;

import java.util.Collection;
import java.util.TreeSet;

/**
 *
 * @author sio
 */
public class Specialite implements Comparable <Specialite>{
    
    private Collection <Med> lesMeds =new TreeSet <Med>();
    private String nom; 
    
    public Specialite(String nom){
        this.nom=nom;
    }
    
    public String getNom(){
        return this.nom;
    }
    
    public void addMed(Med m){
        lesMeds.add(m);
    }
    
    public Collection <Med> getLesMeds(){
        return lesMeds;
    }

    @Override
    public int compareTo(Specialite o) {
       return nom.compareTo(o.nom);
    }
    
}
